/**
 * @param {string} s
 * @return {number}
 */
var minimizedStringLength = function (s) {
 return new Set(s.split('')).size

  
};

minimizedStringLength('aaaabbbb')